home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 3.9 KB | 132 lines | [TEXT/MPS ] |
- ;
- ; File: VideoServices.a
- ;
- ; Contains: Video Services Library Interfaces.
- ;
- ; Version: Technology: PowerSurge 1.0.2
- ; Release: Universal Interfaces 3.0d3 on Copland DR1
- ;
- ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
- IF &TYPE('__VIDEOSERVICES__') = 'UNDEFINED' THEN
- __VIDEOSERVICES__ SET 1
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- IF &TYPE('__NAMEREGISTRY__') = 'UNDEFINED' THEN
- include 'NameRegistry.a'
- ENDIF
- IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
- include 'Quickdraw.a'
- ENDIF
-
- kTransparentEncoding EQU 0
- kInvertingEncoding EQU 1
-
- kTransparentEncodingShift EQU $00
- kTransparentEncodedPixel EQU $01
- kInvertingEncodingShift EQU $02
- kInvertingEncodedPixel EQU $04
-
- kHardwareCursorDescriptorMajorVersion EQU $0001
- kHardwareCursorDescriptorMinorVersion EQU $0000
- ; typedef UInt32 * UInt32Ptr
-
- HardwareCursorDescriptorRec RECORD 0
- majorVersion ds.w 1 ; offset: $0 (0)
- minorVersion ds.w 1 ; offset: $2 (2)
- height ds.l 1 ; offset: $4 (4)
- width ds.l 1 ; offset: $8 (8)
- bitDepth ds.l 1 ; offset: $C (12)
- maskBitDepth ds.l 1 ; offset: $10 (16)
- numColors ds.l 1 ; offset: $14 (20)
- colorEncodings ds.l 1 ; offset: $18 (24)
- flags ds.l 1 ; offset: $1C (28)
- supportedSpecialEncodings ds.l 1 ; offset: $20 (32)
- specialEncodings ds.l 16 ; offset: $24 (36)
- sizeof EQU * ; size: $64 (100)
- ENDR
- ; typedef struct HardwareCursorDescriptorRec * HardwareCursorDescriptorPtr
-
-
- kHardwareCursorInfoMajorVersion EQU $0001
- kHardwareCursorInfoMinorVersion EQU $0000
- HardwareCursorInfoRec RECORD 0
- majorVersion ds.w 1 ; offset: $0 (0) ; Test tool should check for kHardwareCursorInfoMajorVersion1
- minorVersion ds.w 1 ; offset: $2 (2) ; Test tool should check for kHardwareCursorInfoMinorVersion1
- cursorHeight ds.l 1 ; offset: $4 (4)
- cursorWidth ds.l 1 ; offset: $8 (8)
- colorMap ds.l 1 ; offset: $C (12) ; nil or big enough for hardware's max colors
- hardwareCursor ds.l 1 ; offset: $10 (16)
- reserved ds.l 6 ; offset: $14 (20) ; Test tool should check for 0s
- sizeof EQU * ; size: $2C (44)
- ENDR
- ; typedef struct HardwareCursorInfoRec * HardwareCursorInfoPtr
-
-
- kVBLInterruptServiceType EQU 'vbl '
- kHBLInterruptServiceType EQU 'hbl '
- kFrameInterruptServiceType EQU 'fram'
- ; typedef ResType InterruptServiceType
-
- ; typedef UInt32 InterruptServiceIDType
-
- ; typedef InterruptServiceIDType * InterruptServiceIDPtr
-
- IF FOR_SYSTEM7_ONLY THEN
- ;
- ; extern OSErr VSLNewInterruptService(RegEntryID *serviceDevice, InterruptServiceType serviceType, InterruptServiceIDPtr serviceID)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION VSLNewInterruptService
- ENDIF
-
- ENDIF
- IF FOR_SYSTEM8_PREEMPTIVE THEN
- ;
- ; extern OSErr VSLNewInterruptService(RegEntryRef *serviceDevice, InterruptServiceType serviceType, InterruptServiceIDPtr serviceID)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION VSLNewInterruptService
- ENDIF
-
- ;
- ; extern OSErr VSLWaitOnInterruptService(InterruptServiceIDType serviceID, Duration timeout)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION VSLWaitOnInterruptService
- ENDIF
-
- ENDIF
- ;
- ; extern OSErr VSLDisposeInterruptService(InterruptServiceIDType serviceID)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION VSLDisposeInterruptService
- ENDIF
-
- ;
- ; extern OSErr VSLDoInterruptService(InterruptServiceIDType serviceID)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION VSLDoInterruptService
- ENDIF
-
- ;
- ; extern Boolean VSLPrepareCursorForHardwareCursor(void *cursorRef, HardwareCursorDescriptorPtr hardwareDescriptor, HardwareCursorInfoPtr hwCursorInfo)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION VSLPrepareCursorForHardwareCursor
- ENDIF
-
- ENDIF ; __VIDEOSERVICES__
-
-